package c.c.a;

import android.content.Context;

public abstract class q1 {
    public final Context a;
    public int b = 0;
    public boolean c;

    public q1(Context context) {
        this.a = context;
    }

    public abstract boolean a();

    public abstract long b();

    public abstract long[] c();

    public abstract boolean d();

    public abstract String e();

    /* JADX WARNING: Removed duplicated region for block: B:12:0x0024  */
    public final long f() {
        /*
        r8 = this;
        r0 = r8.a();
        r1 = 1;
        r2 = 0;
        if (r0 == 0) goto L_0x0025;
    L_0x0008:
        r0 = r8.a;
        r3 = "connectivity";
        r0 = r0.getSystemService(r3);	 Catch:{ all -> 0x0020 }
        r0 = (android.net.ConnectivityManager) r0;	 Catch:{ all -> 0x0020 }
        r0 = r0.getActiveNetworkInfo();	 Catch:{ all -> 0x0020 }
        if (r0 == 0) goto L_0x0020;
    L_0x0018:
        r0 = r0.isAvailable();	 Catch:{ all -> 0x0020 }
        if (r0 == 0) goto L_0x0020;
    L_0x001e:
        r0 = 1;
        goto L_0x0021;
    L_0x0020:
        r0 = 0;
    L_0x0021:
        if (r0 == 0) goto L_0x0024;
    L_0x0023:
        goto L_0x0025;
    L_0x0024:
        r1 = 0;
    L_0x0025:
        if (r1 != 0) goto L_0x002b;
    L_0x0027:
        r0 = 60000; // 0xea60 float:8.4078E-41 double:2.9644E-319;
        goto L_0x008a;
    L_0x002b:
        r0 = r8.b();
        r3 = java.lang.System.currentTimeMillis();
        r5 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        r5 = r5 + r3;
        r7 = (r0 > r5 ? 1 : (r0 == r5 ? 0 : -1));
        if (r7 > 0) goto L_0x0089;
    L_0x003a:
        r0 = r8.d();	 Catch:{ Exception -> 0x003f }
        goto L_0x0044;
    L_0x003f:
        r0 = move-exception;
        c.c.a.m0.b(r0);
        r0 = 0;
    L_0x0044:
        if (r0 == 0) goto L_0x0052;
    L_0x0046:
        r8.b = r2;
        r1 = r8.b();
        r3 = java.lang.System.currentTimeMillis();
        r1 = r1 - r3;
        goto L_0x0061;
    L_0x0052:
        r1 = r8.c();
        r2 = r8.b;
        r3 = r2 + 1;
        r8.b = r3;
        r3 = r1.length;
        r2 = r2 % r3;
        r2 = r1[r2];
        r1 = r2;
    L_0x0061:
        r3 = new java.lang.StringBuilder;
        r3.<init>();
        r4 = r8.e();
        r3.append(r4);
        r4 = " worked:";
        r3.append(r4);
        r3.append(r0);
        r0 = " ";
        r3.append(r0);
        r3.append(r1);
        r0 = r3.toString();
        r3 = 0;
        r4 = "TeaLog";
        android.util.Log.i(r4, r0, r3);
        r0 = r1;
        goto L_0x008a;
    L_0x0089:
        r0 = r0 - r3;
    L_0x008a:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.a.q1.f():long");
    }
}
